package cn.edu.gzhu.workOrderManagement.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
public class Reminder {
    @TableId (type = IdType.AUTO)
    private Long id;
    private String workOrderUuid;
    private String posterUsername;
    private Boolean isRead;

    private LocalDateTime createTime;
    public String toValue() {
        return "{" +
                "\"workOrderUuid\":\"" + workOrderUuid + "\"," +
                "\"posterUsername\":\"" + posterUsername + "\"," +
                "\"createTime\":\"" + createTime.toString() + "\"" +
                "}";
    }

}
